﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace CollegeShop.Repository.Win.DevHelper
{
    [Serializable]
    public class LinkedAttachementInfo
    {
        private Stream stream;
        private string mimeType;
        private string contentId;

        /// <summary>
        /// 参数构造函数
        /// </summary>
        /// <param name="stream">附件流内容</param>
        /// <param name="mimeType">附件类型</param>
        /// <param name="contentId">内容ID</param>
        public LinkedAttachementInfo(Stream stream, string mimeType, string contentId)
        {
            this.stream = stream;
            this.mimeType = mimeType;
            this.contentId = contentId;
        }

        /// <summary>
        /// 附件流内容
        /// </summary>public Stream Stream { get { return stream; } }

        /// <summary>
        /// 附件类型
        /// </summary>public string MimeType { get { return mimeType; } }

        /// <summary>
        /// 内容ID
        /// </summary>public string ContentId { get { return contentId; } }
    }
}
